<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box01 {
            width: 200px;
            height: 200px;
            background-color: tomato;
        }
    </style>
</head>

<body>
    <div id="app">
        <ul>
            <li v-for="(item,index) in books">{{index}}、{{item}}</li>
        </ul>
        <hr/>
        <ul>
            <li v-for="(item,index) in bookobjs">
                <img v-bind:src="item.img" style="width: 200px;height: 200px;" >
                <p>编号：{{item.id}}</p>
                <p>书名：{{item.name}}</p>
            </li>
        </ul>
        <hr/>
        <ul>
            <li v-for="(value,key,index) in person">{{index}}、{{key}}、{{value}}</li>
        </ul>
        <hr/>
        <ul>
            <li v-for="(item,index) in bookobjs">
                <p v-for="(value,key) in item">{{key}}：{{value}}</p>
            </li>
        </ul>
        <hr/>
        <ul>
            <li v-for="(item,index) in count">{{index}}、{{item}}</li>
        </ul>
        <hr/>
        <ul>
            <li v-for="(ch,index) in str">{{index}}、{{ch}}</li>
        </ul>
        <hr/>
        <ul>
            <li v-for="(item,index) in arr">{{index}}、{{item}}</li>
        </ul>
    </div>
</body>

</html>
<script src="./js/vue2.js"></script>
<script>

    let vm = new Vue({
        el: "#app",
        data: {
            books: ["三国演义", "红楼梦", "水浒传"],
            bookobjs:[
                {
                    "id":"01001",
                    "name":"大学",
                    "img":"./imgs/b01.jpg"
                },
                {
                    "id":"01002",
                    "name":"中庸",
                    "img":"./imgs/b02.jpg"
                },
                {
                    "id":"01003",
                    "name":"孟子",
                    "img":"./imgs/b03.jpg"
                }
            ],
            person:{
                "身份证":"01007",
                "姓名":"刘勇凡",
                "性别":"男"
            },
            count:5,
            str:"how old are you!",
            arr:[]
        }
    });


</script>